FROM jboss/base-jdk:8
USER root
VOLUME /tmp
ADD app-shuanglu-center-1.0.jar app-shuanglu-center-1.0.jar
RUN sh -c 'touch /app-shuanglu-center-1.0.jar'
#设置控制台中文乱码
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
#设置jvm参数
ENV JAVA_OPTS="-Xms256m -Xmx512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200"
#设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app-shuanglu-center-1.0.jar
